/*
 * @Author: 王鹏 2911783749@qq.com
 * @Date: 2022-11-08 09:29:57
 * @LastEditors: 王鹏 2911783749@qq.com
 * @LastEditTime: 2022-11-08 21:24:41
 * @FilePath: \vue3Mixiu\code\src\untils\api.ts
 * @Description: 统一管理接口
 */
import request from './https'
// 注册接口
export function register(data:any){
    return request({
        url:"/api/users/register",
        method:"POST",
        data
    })
}
// 登录接口
export function login(data:any){
    return request({
        url:"/api/users/login",
        method:"POST",
        data
    })
}
// 获取资金流水列表数据
export function profilesList(data:any){
    return request({
        url:"/api/profiles",
        method:"GET",
        data
    })
}
// 删除数据接口
export function del_profiles(data:any){
    return request({
        url:"/api/profiles/delete/"+data._id,
        method:"DELETE",
        data
    })
}